package com.four.order.feign;

import com.four.common.utils.R;
import com.four.common.vo.UserTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: hxw
 * @Date: 2022/1/17 21:50
 */
@FeignClient("four-hospital")
@RequestMapping("hospital")
public interface HospitalFeign {

    /**
     * 修改金额
     * @param userTo
     * @return
     */
    @PostMapping("/user/updateByPayment")
    public R updateByPayment(@RequestBody UserTo userTo);

    /**
     * 查询用户余额
     * @param userId
     * @return
     */
    @GetMapping("/user/getShowUser/{userId}")
    UserTo getShowUser(@PathVariable("userId") Integer userId);
}
